Optimal. Leaf size=141 \[ \frac {b^2}{2 a (b c-a d)^2 \left (a+b x^2\right )}+\frac {d^2}{2 c (b c-a d)^2 \left (c+d x^2\right )}+\frac {\log (x)}{a^2 c^2}-\frac {b^2 (b c-3 a d) \log \left (a+b x^2\right )}{2 a^2 (b c-a d)^3}-\frac {d^2 (3 b c-a d) \log \left (c+d x^2\right )}{2 c^2 (b c-a d)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 141, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {457, 90}
\begin {gather*} -\frac {b^2 (b c-3 a d) \log \left (a+b x^2\right )}{2 a^2 (b c-a d)^3}+\frac {\log (x)}{a^2 c^2}+\frac {b^2}{2 a \left (a+b x^2\right ) (b c-a d)^2}-\frac {d^2 (3 b c-a d) \log \left (c+d x^2\right )}{2 c^2 (b c-a d)^3}+\frac {d^2}{2 c \left (c+d x^2\right ) (b c-a d)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rule 457
Rubi steps
\begin {align*} \int \frac {1}{x \left (a+b x^2\right )^2 \left (c+d x^2\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{x (a+b x)^2 (c+d x)^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {1}{a^2 c^2 x}-\frac {b^3}{a (-b c+a d)^2 (a+b x)^2}-\frac {b^3 (-b c+3 a d)}{a^2 (-b c+a d)^3 (a+b x)}-\frac {d^3}{c (b c-a d)^2 (c+d x)^2}-\frac {d^3 (3 b c-a d)}{c^2 (b c-a d)^3 (c+d x)}\right ) \, dx,x,x^2\right )\\ &=\frac {b^2}{2 a (b c-a d)^2 \left (a+b x^2\right )}+\frac {d^2}{2 c (b c-a d)^2 \left (c+d x^2\right )}+\frac {\log (x)}{a^2 c^2}-\frac {b^2 (b c-3 a d) \log \left (a+b x^2\right )}{2 a^2 (b c-a d)^3}-\frac {d^2 (3 b c-a d) \log \left (c+d x^2\right )}{2 c^2 (b c-a d)^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 133, normalized size = 0.94 \begin {gather*} \frac {1}{2} \left (\frac {b^2}{a (b c-a d)^2 \left (a+b x^2\right )}+\frac {d^2}{c (b c-a d)^2 \left (c+d x^2\right )}+\frac {2 \log (x)}{a^2 c^2}+\frac {b^2 (b c-3 a d) \log \left (a+b x^2\right )}{a^2 (-b c+a d)^3}+\frac {d^2 (-3 b c+a d) \log \left (c+d x^2\right )}{c^2 (b c-a d)^3}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.17, size = 136, normalized size = 0.96
method | result | size |
default | \(-\frac {b^{3} \left (\frac {\left (3 a d -b c \right ) \ln \left (b \,x^{2}+a \right )}{b}-\frac {a \left (a d -b c \right )}{b \left (b \,x^{2}+a \right )}\right )}{2 a^{2} \left (a d -b c \right )^{3}}-\frac {d^{3} \left (-\frac {c \left (a d -b c \right )}{d \left (d \,x^{2}+c \right )}+\frac {\left (a d -3 b c \right ) \ln \left (d \,x^{2}+c \right )}{d}\right )}{2 c^{2} \left (a d -b c \right )^{3}}+\frac {\ln \left (x \right )}{a^{2} c^{2}}\) | \(136\) |
norman | \(\frac {\frac {\left (-a^{3} d^{3}-b^{3} c^{3}\right ) x^{2}}{2 c^{2} a^{2} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}+\frac {\left (-a^{2} d^{2}-b^{2} c^{2}\right ) b d \,x^{4}}{2 c^{2} a^{2} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}}{\left (b \,x^{2}+a \right ) \left (d \,x^{2}+c \right )}+\frac {\ln \left (x \right )}{a^{2} c^{2}}-\frac {b^{2} \left (3 a d -b c \right ) \ln \left (b \,x^{2}+a \right )}{2 a^{2} \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right )}-\frac {d^{2} \left (a d -3 b c \right ) \ln \left (d \,x^{2}+c \right )}{2 c^{2} \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right )}\) | \(260\) |
risch | \(\frac {\frac {b d \left (a d +b c \right ) x^{2}}{2 a c \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}+\frac {a^{2} d^{2}+b^{2} c^{2}}{2 a c \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}}{\left (b \,x^{2}+a \right ) \left (d \,x^{2}+c \right )}+\frac {\ln \left (x \right )}{a^{2} c^{2}}-\frac {d^{3} \ln \left (-d \,x^{2}-c \right ) a}{2 c^{2} \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right )}+\frac {3 d^{2} \ln \left (-d \,x^{2}-c \right ) b}{2 c \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right )}-\frac {3 b^{2} \ln \left (b \,x^{2}+a \right ) d}{2 a \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right )}+\frac {b^{3} \ln \left (b \,x^{2}+a \right ) c}{2 a^{2} \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right )}\) | \(346\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 295 vs.
\(2 (133) = 266\).
time = 0.32, size = 295, normalized size = 2.09 \begin {gather*} -\frac {{\left (b^{3} c - 3 \, a b^{2} d\right )} \log \left (b x^{2} + a\right )}{2 \, {\left (a^{2} b^{3} c^{3} - 3 \, a^{3} b^{2} c^{2} d + 3 \, a^{4} b c d^{2} - a^{5} d^{3}\right )}} - \frac {{\left (3 \, b c d^{2} - a d^{3}\right )} \log \left (d x^{2} + c\right )}{2 \, {\left (b^{3} c^{5} - 3 \, a b^{2} c^{4} d + 3 \, a^{2} b c^{3} d^{2} - a^{3} c^{2} d^{3}\right )}} + \frac {b^{2} c^{2} + a^{2} d^{2} + {\left (b^{2} c d + a b d^{2}\right )} x^{2}}{2 \, {\left (a^{2} b^{2} c^{4} - 2 \, a^{3} b c^{3} d + a^{4} c^{2} d^{2} + {\left (a b^{3} c^{3} d - 2 \, a^{2} b^{2} c^{2} d^{2} + a^{3} b c d^{3}\right )} x^{4} + {\left (a b^{3} c^{4} - a^{2} b^{2} c^{3} d - a^{3} b c^{2} d^{2} + a^{4} c d^{3}\right )} x^{2}\right )}} + \frac {\log \left (x^{2}\right )}{2 \, a^{2} c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 540 vs.
\(2 (133) = 266\).
time = 5.66, size = 540, normalized size = 3.83 \begin {gather*} \frac {a b^{3} c^{4} - a^{2} b^{2} c^{3} d + a^{3} b c^{2} d^{2} - a^{4} c d^{3} + {\left (a b^{3} c^{3} d - a^{3} b c d^{3}\right )} x^{2} - {\left (a b^{3} c^{4} - 3 \, a^{2} b^{2} c^{3} d + {\left (b^{4} c^{3} d - 3 \, a b^{3} c^{2} d^{2}\right )} x^{4} + {\left (b^{4} c^{4} - 2 \, a b^{3} c^{3} d - 3 \, a^{2} b^{2} c^{2} d^{2}\right )} x^{2}\right )} \log \left (b x^{2} + a\right ) - {\left (3 \, a^{3} b c^{2} d^{2} - a^{4} c d^{3} + {\left (3 \, a^{2} b^{2} c d^{3} - a^{3} b d^{4}\right )} x^{4} + {\left (3 \, a^{2} b^{2} c^{2} d^{2} + 2 \, a^{3} b c d^{3} - a^{4} d^{4}\right )} x^{2}\right )} \log \left (d x^{2} + c\right ) + 2 \, {\left (a b^{3} c^{4} - 3 \, a^{2} b^{2} c^{3} d + 3 \, a^{3} b c^{2} d^{2} - a^{4} c d^{3} + {\left (b^{4} c^{3} d - 3 \, a b^{3} c^{2} d^{2} + 3 \, a^{2} b^{2} c d^{3} - a^{3} b d^{4}\right )} x^{4} + {\left (b^{4} c^{4} - 2 \, a b^{3} c^{3} d + 2 \, a^{3} b c d^{3} - a^{4} d^{4}\right )} x^{2}\right )} \log \left (x\right )}{2 \, {\left (a^{3} b^{3} c^{6} - 3 \, a^{4} b^{2} c^{5} d + 3 \, a^{5} b c^{4} d^{2} - a^{6} c^{3} d^{3} + {\left (a^{2} b^{4} c^{5} d - 3 \, a^{3} b^{3} c^{4} d^{2} + 3 \, a^{4} b^{2} c^{3} d^{3} - a^{5} b c^{2} d^{4}\right )} x^{4} + {\left (a^{2} b^{4} c^{6} - 2 \, a^{3} b^{3} c^{5} d + 2 \, a^{5} b c^{3} d^{3} - a^{6} c^{2} d^{4}\right )} x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 321 vs.
\(2 (133) = 266\).
time = 0.59, size = 321, normalized size = 2.28 \begin {gather*} -\frac {{\left (b^{4} c - 3 \, a b^{3} d\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, {\left (a^{2} b^{4} c^{3} - 3 \, a^{3} b^{3} c^{2} d + 3 \, a^{4} b^{2} c d^{2} - a^{5} b d^{3}\right )}} - \frac {{\left (3 \, b c d^{3} - a d^{4}\right )} \log \left ({\left | d x^{2} + c \right |}\right )}{2 \, {\left (b^{3} c^{5} d - 3 \, a b^{2} c^{4} d^{2} + 3 \, a^{2} b c^{3} d^{3} - a^{3} c^{2} d^{4}\right )}} + \frac {b^{3} c^{2} d x^{4} - 2 \, a b^{2} c d^{2} x^{4} + a^{2} b d^{3} x^{4} + b^{3} c^{3} x^{2} + a b^{2} c^{2} d x^{2} + a^{2} b c d^{2} x^{2} + a^{3} d^{3} x^{2} + 3 \, a b^{2} c^{3} - 2 \, a^{2} b c^{2} d + 3 \, a^{3} c d^{2}}{4 \, {\left (a^{2} b^{2} c^{4} - 2 \, a^{3} b c^{3} d + a^{4} c^{2} d^{2}\right )} {\left (b d x^{4} + b c x^{2} + a d x^{2} + a c\right )}} + \frac {\log \left (x^{2}\right )}{2 \, a^{2} c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.78, size = 193, normalized size = 1.37 \begin {gather*} \frac {\frac {a^2\,d^2+b^2\,c^2}{2\,a\,c\,\left (a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2\right )}+\frac {b\,d\,x^2\,\left (a\,d+b\,c\right )}{2\,a\,c\,\left (a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2\right )}}{b\,d\,x^4+\left (a\,d+b\,c\right )\,x^2+a\,c}+\frac {\ln \left (x\right )}{a^2\,c^2}-\frac {b^2\,\ln \left (b\,x^2+a\right )\,\left (3\,a\,d-b\,c\right )}{2\,a^2\,{\left (a\,d-b\,c\right )}^3}-\frac {d^2\,\ln \left (d\,x^2+c\right )\,\left (a\,d-3\,b\,c\right )}{2\,c^2\,{\left (a\,d-b\,c\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________